.class Lcom/waiqin365/lightapp/kehu/at;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/compons/view/d;


# instance fields
.field final synthetic a:Z

.field final synthetic b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;Z)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    iput-boolean p2, p0, Lcom/waiqin365/lightapp/kehu/at;->a:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/at;->a:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->i(Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    const-string/jumbo v1, "storeRole"

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/CMStoreRoleSelectView_vertical;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->j(Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/compons/view/c;->dismiss()V

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    if-eqz v0, :cond_0

    const-string/jumbo v3, "1"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/view/CMStoreRoleSelectView_vertical;->d()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "storeBoss"

    const/4 v3, 0x1

    invoke-virtual {v2, v0, v3}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    :cond_0
    const-string/jumbo v0, "linkman"

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->f(Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v2, v0, v3}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    const-string/jumbo v0, "returnEvtType"

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->k(Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;)I

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    invoke-virtual {v1, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    const/4 v2, -0x1

    invoke-virtual {v0, v2, v1}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->setResult(ILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->finish()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    const v1, 0x7f040020

    const v2, 0x7f040023

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/at;->b:Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;->j(Lcom/waiqin365/lightapp/kehu/CMContactEditActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0067
        :pswitch_0
    .end packed-switch
.end method
